package my.poemlib.bo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import my.poemlib.dao.PoemDao;
import my.poemlib.vo.PageControl;
import my.poemlib.vo.Poem;

@Component
public class PoemBoImpl implements PoemBo {
	
	@Autowired
	private PoemDao peomDao;

	@Override
	public void insertPeom(Poem p) {
		peomDao.insertPeom(p);
	}

	@Override
	public void delPeom(long id) {
		peomDao.delPeom(id);
	}

	@Override
	public void queryByWord(String w,PageControl pc) {
		peomDao.queryByWord(w, pc);
	}

}
